package com.model.demo.designmodel.decorate.battercake;

public class BatterCakeTest {
    public static void main(String[] args) {
        BatterCake batterCake=new BaseBatterCake();
        System.out.println(batterCake.getMsg()+batterCake.getPrice());
        batterCake=new SausageDecorate(batterCake);
        batterCake=new EggDecorate(batterCake);
        System.out.println(batterCake.getMsg()+batterCake.getPrice());
    }
}
